struct point {
   double x,y;
};

struct vect {
   point a,b;
};